/**
 *
 */
package view;

import java.util.List;

import javax.swing.ListModel;
import javax.swing.event.ListDataListener;

import model.Series;

/**
 * TODO COMMENT ME!
 * 
 * @author Marco
 */
public class SeriesListModel implements ListModel {
    List<Series> data;

    public SeriesListModel(List<Series> someSeries) {
        data = someSeries;
    }

    /*
     * (non-Javadoc)
     * 
     * @see
     * javax.swing.ListModel#addListDataListener(javax.swing.event.ListDataListener
     * )
     */
    @Override
    public void addListDataListener(ListDataListener aArg0) {
        // TODO Auto-generated method stub

    }

    /*
     * (non-Javadoc)
     * 
     * @see javax.swing.ListModel#getElementAt(int)
     */
    @Override
    public Object getElementAt(int anIndex) {
        return data.get(anIndex).getName();
    }

    /*
     * (non-Javadoc)
     * 
     * @see javax.swing.ListModel#getSize()
     */
    @Override
    public int getSize() {
        return data.size();
    }

    /*
     * (non-Javadoc)
     * 
     * @see javax.swing.ListModel#removeListDataListener(javax.swing.event.
     * ListDataListener)
     */
    @Override
    public void removeListDataListener(ListDataListener aArg0) {
        // TODO Auto-generated method stub
    }

}
